package top.fangw.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import top.fangw.common.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.fangw.common.core.entity.BaseIdNameVo;
import top.fangw.common.core.entity.TenantBaseEntity;

/**
 * <p>
 * 用途：用于存放系统的角色信息
 * </p>
 *
 * @author fangw
 * @since 2024-03-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tbl_sys_role")
@Schema(name = "SysRole", description = "用途：用于存放系统的角色信息")
public class SysRole extends TenantBaseEntity {


    @Schema(description = "英文名称")
    @TableField("enname")
    private String enname;

    @Schema(description = "角色类型0:系统角色 1:用户添加角色")
    @TableField("role_type")
    private String roleType;

    @Schema(description = "所属机构id")
    @TableField("office_id")
    private String officeId;

    @Schema(description = "数据权限保存角色对应的数据权限")
    @TableField("data_scope")
    private String dataScope;

    @Schema(description = "是否用于注册")
    @TableField("used_register")
    private String usedRegister;

    @Schema(description = "排序正序")
    @TableField("show_sort")
    private Integer showSort;

    @Schema(description = "是否可删除")
    @TableField("is_deletable")
    private String isDeletable;

    @TableField(exist = false)
    private List<BaseIdNameVo>  menuIds;

    @TableField(exist = false)
    private List<String>  applicationIds;



}
